import request from '@/util/request';
import {post} from "axios";
export default {
    findAllUser(){
        return request({
            url:`/user/list`,
            method:"get"
        })
    },
    login(data) {
        return request({
            url: `/user/login`,
            method: "post",
            data
        });
    },
    //添加或修改用户
    save(url,method,data){
        return request({
            url,
            method,
            data
        });
    },
    delete(id){
        return request({
            url:`/user/delete/${id}`,
            method:"delete"
        })
    }
};